﻿using Ext.Net.MVC;
using System;
using Sharp.Portal;
using Sharp.Portal.Mvc.List;
using Sharp.Portal.Other;
using Column = Ext.Net.MVC.ColumnAttribute;
using DateColumn = Ext.Net.MVC.DateColumnAttribute;
namespace Sharp.WebBooter.Areas.Platform.Models
{
    [Title("日志管理")]
    [DataHandler(ModuleOP.Delete, "删除", 3)]
    [DataHandler(ModuleOP.Refresh, "刷新", 4)]
    public partial class UserLogIndexViewModel : Sharp.Portal.ExtNet.ExtSharpList
    {

        public UserLogIndexViewModel()
        {
            this.Feature = ListFeature.MultiSelect | ListFeature.Paging | ListFeature.RowNumber;
        }
        /// <summary>
        /// 主键Id
        /// </summary>
        /// <value>主键Id</value>
        [Column(Hidden = true)]
        public Guid Id { get; set; }
        /// <summary>
        /// 操作内容的描述
        /// </summary>
        [Column(Text = "描述", Width = 260), QueryOption(Option = QueryFeature.DefualtQuery)]
        public string Content { get; set; }

        /// <summary>
        /// 操作员姓名
        /// </summary>
        [Column(Text = "操作员姓名", Width = 100)]
        public string FullName { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        [DateColumn(Text = "时间", Width = 140, Format = "Y-m-d H:i:s")]
        public DateTime Eventtime { get; set; }
        /// <summary>
        /// 来源
        /// </summary>
        [Column(Text = "来源", Width = 360)]
        public string InternalSources { get; set; }
    }
}
